#ifndef __TEST_SEGMENT_H__
#define __TEST_SEGMENT_H__

#include <windows.h>
#include "FlashStickTestTypes.h"

class CTestSegment
{
public:
	CTestSegment(EIOType	eIoType,
				 DWORD		dwSegmentBytes,
				 DWORDLONG	dwlOffset);
	~CTestSegment(void);

	EIOType				m_eIoType;
	DWORD				m_dwSegmentBytes;
	DWORDLONG			m_dwlOffset;
	OVERLAPPED			m_oOverlapInfo;
	// TODO: maybe we can manage without this variable
	bool				m_bIsReady;

	CTestSegment*		m_psNextSegment;
	void*				m_pBuffer;

	bool PrepareTest(HANDLE	hDiskFile);
};

#endif // __TEST_SEGMENT_H__